from django import template
from usermanagement.models import UserProfile

register = template.Library()

@register.filter
def ewochenname(ewoche):
    return ewoche.name()

@register.filter
def studyfield(user):
    return UserProfile.get_study_field_display(user)
